﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpDutyAdd.aspx.cs" Inherits="UI.ModEmployee.EmpDutyAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>增加兼职信息</title>
     <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
       <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            height: 23px;
        }
    </style>
</head>
<body  onload="window.document.forms[0].EmpCode.focus();">
    <form id="form1" runat="server">
   <br />
    &nbsp;<br />
    &nbsp;<p style="text-align: center; font-size: large;">
        <strong>兼职信息管理</strong></p>
    <br />
    <table style="width: 75%;"  align="center" class="td">
        <tr>
            <td>
                员工编号:
            </td>
            <td>
                <asp:TextBox ID="EmpCode" runat="server" CssClass="InputCss" Width="100px"
                    AutoPostBack="True" OnTextChanged="txtEmpCode_TextChanged" TabIndex="0"></asp:TextBox>
                    <a href="javascript:ShowLink('ZipSeaForIn.aspx',880,550)"><img src="../Images/Search.gif" alt="搜索" width="27" height="12" border="0" /></a>
                <asp:RequiredFieldValidator ID="rfvEmpCode" runat="server" 
                    ControlToValidate="EmpCode" ErrorMessage="*工号必填" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
             <td>
                员工姓名:
            </td>
            <td>
                <asp:Label ID="EmpName" runat="server" Width="100px"  ></asp:Label>

            </td>
            </tr>
            <tr>
            <td>
                公司</td>
            <td>
                <asp:Label ID="OldComName" runat="server" 
                    Width="180px"  ></asp:Label>
            </td>
            <td>
                兼职公司</td>
            <td>
                 <asp:DropDownList ID="ComID" runat="server"  CssClass="InputCss"  onkeydown="if(event.keyCode==13)event.keyCode=9" 
                     Width="180px" TabIndex="3">
            </asp:DropDownList>
            </td>
        </tr>
            <tr>
            <td>
                部门:
            </td>
            <td>
                <asp:Label ID="OldDeptName" runat="server" 
                    Width="180px" ></asp:Label>
            </td>
            <td>
                兼职部门:
            </td>
            <td>
                 <asp:DropDownList ID="DeptID" runat="server"  CssClass="InputCss"  onkeydown="if(event.keyCode==13)event.keyCode=9" 
                     Width="180px" TabIndex="3">
            </asp:DropDownList>
            </td>
        </tr>
        <tr>
           
            <td>
                职位:
            </td>
            <td>
                <asp:Label ID="OldDutyName" runat="server" 
                    Width="180px"  ></asp:Label>
            </td>
            <td>
                兼职职位:
            </td>
            <td>
               <asp:DropDownList ID="DutyID"  CssClass="InputCss" Width="180px"  onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    runat="server" TabIndex="5">
            </asp:DropDownList>
            </td>
        </tr>
            <tr>
           
            <td>
                区域:
            </td>
            <td>
                <asp:Label ID="OldAreaName" runat="server" Width="100px"></asp:Label>
            </td>
            <td>
                兼职区域:
            </td>
            <td>
               <asp:DropDownList ID="AreaID"  CssClass="InputCss" Width="100px"  onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    runat="server" TabIndex="7">
            </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                在职状态:
            </td>
            <td>
                <asp:Label ID="StateName" runat="server" Width="100px"  ></asp:Label>
            </td>
            <td>
                新在职状态:</td>
            <td>
               
               <asp:DropDownList ID="StateID"  CssClass="InputCss" Width="100px"  onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    runat="server" TabIndex="9">
            </asp:DropDownList>
            </td>
           
        </tr>
        <tr>
         <td class="style1">
                生效时间:
            </td>
            <td class="style1">
                <asp:TextBox ID="BTime" runat="server" onclick="setday(this,false)" 
                    onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    CssClass="InputCss" Width="100px" onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    TabIndex="12"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvTime" runat="server" 
                    ControlToValidate="BTime" ErrorMessage="*时间必填" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
             <td class="style1">
                
                 停止时间:</td>
             <td class="style1">
                <asp:TextBox ID="ETime" runat="server" onclick="setday(this,false)" 
                    onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    CssClass="InputCss" Width="100px" onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    TabIndex="13"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                备注:
            </td>
            <td colspan="3">
                <asp:TextBox ID="Memo" runat="server" CssClass="InputCss" Width="420px" 
                    TabIndex="13"  onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    Rows="3" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
    </table>
    <p style="text-align: center;">
        <asp:HiddenField ID="EimID" runat="server" />
        <asp:HiddenField ID="InputAccount" runat="server" />
        <asp:Button ID="btnAdd" runat="server" Text="增加兼职" OnClick="btnAdd_Click" 
            TabIndex="13" />
             &nbsp;<asp:Button ID="btnClose" runat="server" onclick="btnClose_Click" Text="取消兼职" 
            TabIndex="17" CausesValidation="False" />
        &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="更新" 
            OnClick="btnUpdate_Click" TabIndex="15" style="height: 21px" />
        &nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" 
            OnClick="btnDelete_Click"  OnClientClick="return confirm('确定要删除吗?\n');" 
            TabIndex="16" />
       
    </p>
    </form>
</body>
</html>
